import request from '@utils/request'

// 获取全部详细地址黑名单
const getAddressKeyList = async (data) => {
  return request({
    url: '/server/GetAddressKeyList',
    method: 'get',
    data
  })
}

// 添加详细地址黑名单
const addAddressKey = async (data) => {
  return request({
    url: '/server/AddAddressKey',
    method: 'get',
    data
  })
}

// 编辑详细地址黑名单
const editAddressKey = async (data) => {
  return request({
    url: '/server/EditAddressKey',
    method: 'get',
    data
  })
}

// 删除详细地址黑名单
const deleteAddressKey = async (data) => {
  return request({
    url: '/server/DeleteAddressKey',
    method: 'get',
    data
  })
}

export {
  getAddressKeyList,
  addAddressKey,
  editAddressKey,
  deleteAddressKey
}
